<?php
$destdesc = (set_value('destdesc') == '')?$destdetails['destdesc']:set_value('destdesc');
$status = (set_value('status') == '')?$destdetails['status']:set_value('status');
$id = ($this->input->post('id') == '')?$destdetails['id']:$this->input->post('id');
$action=(($destdetails['id'] || $this->input->post('id')!='')?"doeditdestination":"doadddestination");
?>
<div class="form_content">
    <header><h3>Post New Destination</h3></header>
    <div class="module_content">
        <form name="destinationform" id="hotelform"  action="<?php echo base_url(); ?>secu/destination/<?php echo $action; ?>" method="post">
        <input type="hidden" name="id" id="id" value="<?php echo $id; ?>">
        <fieldset style="width:40%;">
            <label>Title</label>
            <input type="text" name="destdesc" id="destdesc" value="<?php echo $destdesc; ?>" style="width:92%;">
             <?php echo form_error('destdesc'); ?>
        </fieldset>
        <fieldset style="width:40%;">
            <label style="width: 10%;">Status</label>
            <input <?php echo ($status==1)?"checked":""; ?> type="checkbox" name="status" value="1" style="width:20%;">
             <?php echo form_error('status'); ?>
        </fieldset>
         
          <fieldset style="width:38%;padding: 1%;">

            <input type="submit" name="submit" id="submit" value="SAVE" >&nbsp;
            <input type="reset" name="reset" id="reset" value="RESET" >
        </fieldset>
<div class="clear"></div>
</form>
    </div>



</div>



